<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="circleBulletinList.title"/></title>
    <meta name="heading" content="<fmt:message key='circleBulletinList.heading'/>"/>
    <meta name="menu" content="CircleBulletinMenu"/>
</head>

<div id="search">
<form method="get" action="${ctx}/circleBulletins" id="searchForm">
    <input type="text" size="20" name="q" id="query" value="${param.q}"
           placeholder="Enter search terms..."/>
    <input type="submit" value="<fmt:message key="button.search"/>"/>
</form>
</div>

<input type="button" style="margin-right: 5px" class="button" onclick="location.href='<c:url value="/editCircleBulletin"/>'" value="<fmt:message key="button.add"/>"/>
<input type="button" class="button" onclick="location.href='<c:url value="/mainMenu"/>'" value="<fmt:message key="button.done"/>"/>

<display:table name="circleBulletins" class="table" requestURI="" id="circleBulletinList" export="true" pagesize="25">
    <display:column property="bulletinId" sortable="true" href="editCircleBulletin" media="html"
        paramId="bulletinId" paramProperty="bulletinId" titleKey="circleBulletin.bulletinId"/>
    <display:column property="bulletinId" media="csv excel xml pdf" titleKey="circleBulletin.bulletinId"/>
    <display:column property="bullorder" sortable="true" titleKey="circleBulletin.bullorder"/>
    <display:column property="crDate" sortable="true" titleKey="circleBulletin.crDate"/>
    <display:column property="descn" sortable="true" titleKey="circleBulletin.descn"/>
    <display:column property="title" sortable="true" titleKey="circleBulletin.title"/>
    <display:column property="version" sortable="true" titleKey="circleBulletin.version"/>

    <display:setProperty name="paging.banner.item_name"><fmt:message key="circleBulletinList.circleBulletin"/></display:setProperty>
    <display:setProperty name="paging.banner.items_name"><fmt:message key="circleBulletinList.circleBulletins"/></display:setProperty>

    <display:setProperty name="export.excel.filename"><fmt:message key="circleBulletinList.title"/>.xls</display:setProperty>
    <display:setProperty name="export.csv.filename"><fmt:message key="circleBulletinList.title"/>.csv</display:setProperty>
    <display:setProperty name="export.pdf.filename"><fmt:message key="circleBulletinList.title"/>.pdf</display:setProperty>
</display:table>

<input type="button" style="margin-right: 5px" class="button" onclick="location.href='<c:url value="/editCircleBulletin"/>'" value="<fmt:message key="button.add"/>"/>
<input type="button" class="button" onclick="location.href='<c:url value="/mainMenu"/>'" value="<fmt:message key="button.done"/>"/>

<script type="text/javascript">
    highlightTableRows("circleBulletinList");
</script>
